const fs = require('fs');
function writeYml(filepath, yml, append = true) {
  const oldContent = fs.readFileSync(filepath, 'utf8').toString();
  if (append) {
    yml = oldContent + '\n' + yml;
  }
  fs.writeFileSync(filepath, yml);
}

module.exports = {
  writeYml
};